'use strict';
var clientControllers = angular.module('clientControllers');

clientControllers
    .controller('CmsVideoCtrl', ['$rootScope', '$scope', '$routeParams',
        'Subscription', 'Videos', 'Video', function ($rootScope, $scope, $routeParams, Subscription, Videos, Video) {

            $scope.showVideoList = function() {
                $scope.videoContent = 'views/component/video/video-list.html';
                var json = Videos.find({action: 'bySubId', subId: $rootScope.CurrentSub.id},function() {
                    $scope.videos = json.data.videos;
                });
            }
            $scope.showVideoList();

        }]);